package com.example.smartcity.Mappers;

import com.example.smartcity.Entity.Image;
import org.apache.ibatis.annotations.*;

@Mapper
public interface ImageMapper {
    @Select("SELECT * FROM images WHERE id = #{id}")
    Image findById(Integer id);

    @Insert("INSERT INTO images(name, base64) VALUES(#{name}, #{base64})")
    void insert(Image image);
}